﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ctrlAgregarForecast.ascx.vb" Inherits="Forecast.Webforms.AgregarForecast" %>
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>--%>


<link href="css/flint.css" rel="stylesheet" />
<link rel="stylesheet" href="Style/chosen.css" />

<style type="text/css">
    .auto-style2
    {
        width: 155px;
    }
    .auto-style3
    {
    }
    .auto-style4
    {
        width: 131px;
    }
    .auto-style5
    {
        width: 130px;
    }
    .auto-style6
    {
        width: 88px;
    }
    .auto-style8
    {
        width: 129px;
    }
    .auto-style9 {
        height: 30px;
    }
    .auto-style10 {
        width: 263px;
    }
    </style>

<asp:Button ID="btnAgregarGasto" runat="server" Style="display: none" />
<%--<asp:ModalPopupExtender ID="mpeAgregarGasto"  TargetControlID="btnAgregarGasto" PopupControlID="upAgregarGasto" BackgroundCssClass="vs12_light_opacity" runat="server"/>--%>
<asp:UpdatePanel runat="server" ID="upAgregarGasto">
    <ContentTemplate>
        
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                 <ContentTemplate>
                 <%--    <asp:Button ID="LoadLocalDialog" runat="server" Text="Agregar Gasto" BorderColor="#0099FF" BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="143px" OnClick="btnAgregarGasto_Click" />--%>
                      <%--<asp:Button ID="LoadLocalDialog" runat="server" Text="Agregar Gasto" CssClass="boton" OnClick="btnAgregarGasto_Click" />--%>
                     
                  <div runat="server" ID="pnlRendicion">
                                           
                       <div id="Div001" style="width:88%; height:100%">
                      
                           <center>
                               <div id='FormModForecastDet' class="vs12_light_form vs12_light_form_modal" style="width:80%;">
                            <table style="width:50%;">
                         <tr>
                             <td colspan="2">
                                 
                                
                                 <table runat="server" id="TBCabezera" style="width:100%;">
                                     <tr>
                                         <td class="auto-style5" style="background-color: #D8D8D8">
                                             <asp:Label ID="Label28" runat="server" Text="Cod. Customer"></asp:Label>
                                         </td>
                                         <td style="background-color: #E5E5E5">
                                             <asp:TextBox ID="txtCodCliente_" runat="server" ReadOnly="True" Width="300px" CssClass="w70p"></asp:TextBox>
                                         </td>
                                         <td class="auto-style8" style="background-color: #D8D8D8">
                                             <asp:Label ID="Label25" runat="server" Text="Segment"></asp:Label>
                                         </td>
                                         <td style="background-color: #E5E5E5">
                                             <asp:TextBox ID="TxtSegmento_" runat="server" ReadOnly="True" Width="300px" CssClass="w70p"></asp:TextBox>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td class="auto-style5" style="background-color: #D8D8D8">
                                             <asp:Label ID="Label24" runat="server" Text="Name Customer"></asp:Label>
                                         </td>
                                         <td style="background-color: #E5E5E5">
                                             <asp:TextBox ID="TxtCliente_" runat="server" ReadOnly="True" Width="300px" CssClass="w70p"></asp:TextBox>
                                         </td>
                                         <td class="auto-style8" style="background-color: #D8D8D8">
                                             <asp:Label ID="Label27" runat="server" Text="ProductLine"></asp:Label>
                                         </td>
                                         <td style="background-color: #E5E5E5">
                                             <asp:TextBox ID="txtProductLine_" runat="server" ReadOnly="True" Width="300px" CssClass="w70p"></asp:TextBox>
                                         </td>
                                     </tr>
                                 </table>
                             </td>
                         </tr>
                         <tr>
                             <td style="text-align: left; vertical-align: top;">
                                 
                                
                                 <asp:Panel ID="Panel1" runat="server" Height="300px" Width="380px">
                                     
                                     <asp:GridView ID="GrProductDeForeCast" runat="server" AutoGenerateColumns="False" Height="76px" OnRowCommand="GrProductDeForeCast_RowCommand"  CssClass="vs12_light_grid_trdl_alt pd5p" Width="380px" CellPadding="4" ForeColor="#333333" GridLines="None">
                                         <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                         <Columns>
                                             <asp:CommandField SelectText="&lt;img alt=&quot;&quot; src=&quot;flint/bgEditar.png&quot; id=&quot;CargaWin&quot; /&gt;" ShowSelectButton="True" Visible="False" />
                                             <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
                                             <asp:BoundField DataField="IdForecast" HeaderText="IdForecast" Visible="False" />
                                             <asp:BoundField DataField="CodCliente" HeaderText="Cliente" Visible="False">
                                             <HeaderStyle Width="80px" />
                                             </asp:BoundField>
                                             <asp:BoundField DataField="DesSegment" HeaderText="Segmento" Visible="False">
                                             <HeaderStyle Width="80px" />
                                             </asp:BoundField>
                                             <asp:BoundField DataField="DesProductLine" HeaderText="ProductLine" Visible="False">
                                             <HeaderStyle Width="120px" />
                                             </asp:BoundField>
                                             <asp:BoundField DataField="DesProduct" HeaderText="Product">
                                             <HeaderStyle Width="200px" />
                                             </asp:BoundField>
                                             <asp:BoundField DataField="CodUOM" HeaderText="UOM">
                                             <HeaderStyle Width="32px" />
                                             </asp:BoundField>
                                             <asp:TemplateField Visible="False">
                                                 <ItemTemplate>
                                                     <asp:Button ShowSelectButton="True" ID="btnEditar" runat="server" CommandArgument="<%# Container.DataItemIndex %>" CommandName="Editar" CssClass="btnVer" Text="" ToolTip="Editar" />
                                                     <!--   <asp:Button ID="btnEliminar" runat="server" Text="" CssClass="btnEliminar" CommandName="Eliminar" CommandArgument='<%# Container.DataItemIndex %>' ToolTip="Eliminar"/>-->
                                                 </ItemTemplate>
                                                 <HeaderStyle Width="23px" />
                                             </asp:TemplateField>
                                             <asp:CommandField ShowSelectButton="True" SelectText="&lt;img alt=&quot;&quot; src=&quot;../css/flint/bgVer.png&quot; border=&quot;0&quot; /&gt;">
                                             <HeaderStyle Width="18px" />
                                             </asp:CommandField>
                                         </Columns>
                                         <EditRowStyle BackColor="#999999" />
                                         <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                         <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                         <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                         <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                         <SelectedRowStyle BorderColor="#003399" BorderWidth="2px" BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                         <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                         <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                         <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                         <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                     </asp:GridView>
                                    
                                     <asp:Button ID="btnIngresarForescast" runat="server" CssClass="boton" Text="Add Product" ValidationGroup="NoValidar" />
                                    
                                 </asp:Panel>
                             </td>
                             <td  style="text-align: left; vertical-align: top;">
                                 <table runat="server" id="TBDetalleForecast" style="width: 400px; text-align: left" visible="False">
                                     <tr>
                                         <td  style="text-align: left">

                                             <div id="DetalleForecast" class="vs12_light_form vs12_light_form_modal" style="width:100%;">
                                      <table style="width:300px;">
                                     
                                     <tr>
                                         <td style="text-align: left; vertical-align: top; background-color: #CCCCCC;" class="auto-style2">
                                             <asp:Label ID="Label8" runat="server" Text="Product"></asp:Label>
                                         </td>
                                         <td style="text-align: left; vertical-align: top">
                                             <asp:DropDownList ID="DrProducto" runat="server" AutoPostBack="True" Width="420px">
                                             </asp:DropDownList>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td style="text-align: left; vertical-align: top; background-color: #CCCCCC;" class="auto-style2">
                                             <asp:Label ID="Label9" runat="server" Text="UOM"></asp:Label>
                                         </td>
                                         <td style="text-align: left; vertical-align: top">
                                             <asp:TextBox ID="TxtUOM" runat="server" Enabled="False" CssClass="w70p"></asp:TextBox>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td style="text-align: right; vertical-align: top" class="auto-style2" colspan="2">
                                             <center>
<table style="border-width: 0px; width:100%;">
    <tr>
        <td style="background-color: #D7D7D7"><center><asp:Label ID="Label22" runat="server" Text="Actual"></asp:Label></center>
        </td>
        <td style="background-color: #D7D7D7"><center><asp:Label ID="Label23" runat="server" Text="ForeCast"></asp:Label></center>
        </td>
    </tr>
    <tr>
        
        <td>
            <asp:GridView ID="GrPeriodInactivo" runat="server" AutoGenerateColumns="False" CssClass="vs12_light_grid_trdl_alt pd5p" CellPadding="4" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
                    <asp:BoundField DataField="IdForecast" HeaderText="IdForecast" Visible="False" />
                    <asp:BoundField DataField="Period" HeaderText="Period">
                    <HeaderStyle Width="60px" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Volume" HeaderText="Volume">
                    <HeaderStyle Width="60px" />
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField DataField="DesUOM" HeaderText="UOM">
                    <HeaderStyle Width="50px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Sale" DataField="ValuesSP">
                    <HeaderStyle Width="70px" />
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Cost" DataField="ValuePC">
                    <HeaderStyle Width="70px" />
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                   
                    <asp:BoundField DataField="CurrencyPC" HeaderText=" " Visible="False">
                    <HeaderStyle Width="30px" />
                    </asp:BoundField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
        </td>
        <td>
            <asp:GridView ID="GrPeriodActivo" runat="server" AutoGenerateColumns="False" CssClass="vs12_light_grid_trdl_alt pd5p" Width="285px" CellPadding="4" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
                    <asp:BoundField DataField="IdForecast" HeaderText="IdForecast" Visible="False" />
                    <asp:BoundField DataField="Period" HeaderText="Period">
                    <HeaderStyle Width="60px" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Volume" HeaderText="Volum">
                    <HeaderStyle Width="60px" />
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Sale" DataField="ValuesSP">
                    <HeaderStyle Width="70px" />
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Cost" DataField="ValuePC">
                    <HeaderStyle Width="70px" />
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Button ID="btnEditar" runat="server" CommandArgument="<%# Container.DataItemIndex %>" CommandName="Editar" CssClass="btnEditar" Text="" ToolTip="Editar" />
                            <!--   <asp:Button ID="btnEliminar" runat="server" Text="" CssClass="btnEliminar" CommandName="Eliminar" CommandArgument='<%# Container.DataItemIndex %>' ToolTip="Eliminar"/>-->
                        </ItemTemplate>
                        <HeaderStyle Width="30px" />
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
        </td>
        
    </tr>
    </table>
                                             </center>
                                         </td>
                                     </tr>
                                 </table>
                                </div>

                                         </td>
                                         
                                     </tr>                                     
                                 </table>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <table id="TBFormIngModForescast" runat="server" style="width: 95%;">
                                     <tr>
                                         <td>
<div id='FormIngModForescast' class="vs12_light_form vs12_light_form_modal" style="width:100%;">
                                      <table style="width:100%;">
                                          <tr>
                                         <td style="text-align: center; vertical-align: top; background-color: #C0C0C0;" class="auto-style3" colspan="3">
                                             
                                                <asp:Label ID="LblTitulo" runat="server" Font-Bold="True" Font-Size="Small" Text="Income Forecast" Width="200px">
                                            
                                             </asp:Label>
                                         </td>
                                         </tr>
                                        
                                          <tr>
                                         <td style="text-align: left; vertical-align: top; ">
                                             <asp:Label ID="LblCustomerING" runat="server" Text="Customer" Width="140px" BackColor="#CCCCCC" Height="18px"></asp:Label>
                                         </td>
                                              <td style="text-align: left; vertical-align: top" colspan="2">
                                             <asp:DropDownList ID="DrClienteIng" runat="server" Width="420px" AutoPostBack="True">
                                             </asp:DropDownList>
                                         </td>
                                         </tr>
                                             <tr>
                                         <td style="text-align: left; vertical-align: top; ">
                                             <asp:Label ID="lblNombreCliente" runat="server" BackColor="#CCCCCC" Height="18px" Text="Customer Name" Visible="False" Width="140px"></asp:Label>
                                         </td>
                                         <td style="text-align: left; vertical-align: top" colspan="2">
                                             <asp:TextBox ID="TxtNombreCliente" runat="server" Visible="False" Width="420px" CssClass="w70p"></asp:TextBox>
                                         </td>
                                     </tr>
                                          <tr>
                                              <td style="text-align: left; vertical-align: top; ">
                                                  <asp:Label ID="lblSegmentPLING" runat="server" BackColor="#CCCCCC" Height="18px" Text="Segment/ProductLine" Width="140px"></asp:Label>
                                              </td>
                                              <td style="text-align: left; vertical-align: top" colspan="2">
                                                  <asp:DropDownList ID="DrSegmentoPLIng" runat="server" AutoPostBack="True" Width="420px">
                                                  </asp:DropDownList>
                                              </td>
                                          </tr>
                                     <tr>
                                         <td style="text-align: left; vertical-align: top; ">
                                             <asp:Label ID="Label11" runat="server" Text="Product" BackColor="#CCCCCC" Height="18px" Width="140px"></asp:Label>
                                         </td>
                                         <td style="text-align: left; vertical-align: top" colspan="2">
                                             <asp:DropDownList ID="DrProductoIng" runat="server" AutoPostBack="True" Width="420px">
                                             </asp:DropDownList>
                                         </td>
                                     </tr>

                                        <tr>
                                              <td style="text-align: left; vertical-align: top; ">
                                                  <asp:Label ID="LblProductName" runat="server" BackColor="#CCCCCC" Height="18px" Text="Product Name" Visible="False" Width="140px"></asp:Label>
                                              </td>
                                              <td style="text-align: left; vertical-align: top" colspan="2">
                                                  <asp:TextBox ID="TxtProductName" runat="server" Visible="False" Width="420px"></asp:TextBox>
                                              </td>
                                          </tr>


                                          <tr>
                                              <td style="text-align: left; vertical-align: top; ">
                                                  <asp:Label ID="Label14" runat="server" BackColor="#CCCCCC" Height="18px" Text="Period" Width="140px"></asp:Label>
                                              </td>
                                              <td style="text-align: left; vertical-align: top" class="auto-style10">
                                                  <asp:DropDownList ID="DrPeriodo" runat="server" Width="110px">
                                                  </asp:DropDownList>
                                              </td>
                                              <td style="text-align: left; vertical-align: top">
                                                  &nbsp;</td>
                                          </tr>


                                     <tr>
                                         <td style="text-align: left; vertical-align: top; ">
                                             <asp:Label ID="Label12" runat="server" Text="UOM" BackColor="#CCCCCC" Height="18px" Width="140px"></asp:Label>
                                         </td>
                                         <td style="text-align: left; vertical-align: top" class="auto-style10">
                                             <asp:TextBox ID="TxtUOMIng" runat="server" Enabled="False" Width="80px" CssClass="w70p"></asp:TextBox>
                                             <asp:DropDownList ID="DrUOM" runat="server" Visible="False" Width="80px">
                                             </asp:DropDownList>
                                             <asp:TextBox ID="txtIdUOM" runat="server" ReadOnly="True" Width="20px" Visible="False"></asp:TextBox>
                                         </td>
                                     </tr>
                                          <tr>
                                              <td style="text-align: left; vertical-align: top; ">
                                                  <asp:Label ID="LblUnitPrice" runat="server" BackColor="#CCCCCC" Height="18px" Text="Unit Price" Visible="False" Width="140px"></asp:Label>
                                              </td>
                                              <td style="text-align: left; vertical-align: top" class="auto-style10">
                                                  <asp:TextBox ID="TxtUnitPriceUP" runat="server" Visible="False" Width="80px"></asp:TextBox>
                                                  <asp:DropDownList ID="DrCurrencyUP" runat="server" Visible="False" Width="80px">
                                                  </asp:DropDownList>
                                              </td>
                                          </tr>
<tr>
                                         <td style="text-align: left; vertical-align: top; " class="auto-style9">
                                             <asp:Label ID="Label13" runat="server" Text="Volume" BackColor="#CCCCCC" Height="18px" Width="140px"></asp:Label>
                                         </td>
                                         <td style="text-align: left; vertical-align: top" class="auto-style9" colspan="2">
                                             <asp:TextBox ID="TxtVolumen" runat="server" MaxLength="9" Width="80px" CssClass="w70p"></asp:TextBox>
                                             <asp:Button ID="btnCalcularPrecio" runat="server" BackColor="#0033CC" BorderColor="#000066" BorderWidth="1px" Font-Bold="True" ForeColor="White" Text="$" Width="25px" />
                                             <asp:Label ID="lblPrecioCU" runat="server"></asp:Label>
                                         </td>
                                     </tr>
                                          
                                          <tr>
                                              <td  style="text-align: left; vertical-align: top; " class="auto-style9">
                                                  &nbsp;</td>
                                              <td class="auto-style9" colspan="2" style="text-align: left; vertical-align: top">
                                                  <asp:CheckBox ID="ChSpecial" runat="server" Text="The product requires manufacturing process." />

                                              </td>
                                          </tr>
                                          
                                          <tr>
                                              <td  style="text-align: left; vertical-align: top; ">
                                                  <asp:Button ID="BtnGuardarForeCast" runat="server" CssClass="boton" Text="Save" Width="80px" ValidationGroup="Valcampo" />
                                                 
                                                  
                                                  <asp:Button ID="BtnGuardarForeCast2" runat="server" CssClass="boton" Text="Save" ValidationGroup="Valcampo" Width="80px" />
                                                 
                                                  
                                              </td>
                                              <td colspan="2">
<asp:Button ID="BtnCancelarForeCast" runat="server" CssClass="boton" Text="Cancel" Width="80px" ValidationGroup="NoValidar" />
                                              </td>
                                          </tr>
                                      </table>
     <div runat="server" id="MensajeExistencia" visible="false" style="background-color: #FEFFCA; text-align: center;">
                                                    <asp:Label ID="lblMsgExiste" runat="server" Text="El Forecast del Cliente y Producto seleccionado ya fueron ingresados con anterioridad desea abrirlo."></asp:Label>
                                                    &nbsp;<br /> &nbsp;
                                                        <div style="text-align: center">                                              
                                                            <asp:Button ID="btnCargarForecastSI" runat="server" Text="SI" Width="45px" CssClass="boton"/>&nbsp;&nbsp;
                                                            <asp:Button ID="btncargarForecastNO" runat="server" Text="NO" Width="45px" CssClass="boton" />
                                                        </div> 
                                                    </div>
                                    <div class="vs12_light_contenedorMsg" runat="server" id="ErroresLogin" visible="false">
                                        <table style="width: 100%" runat="server" id="LblError" >
                                            <tr>
                                                <td style="width:24px; vertical-align: top">
                                                    <asp:Image ID="ImgErrores" runat="server" ImageUrl="~/Images/icons/Mensaje/icoError.png"/> 
                                                </td>
                                                <td>
                                                   
                                                    <asp:Label ID="lblErrores" runat="server" Text=""/>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>   
                                      </div>
                                         </td>
                                     </tr>                                    
                                 </table>
    </ContentTemplate>
                                 </asp:UpdatePanel>
                                 


                               <table style="width:588px">
                                   <tr>
                                       <td style="text-align: center"> &nbsp; 
                                           <asp:Label ID="lblMensajeIngreso" runat="server" Text="Ingresado Exitosamente" Visible="False" Width="100%" BackColor="#FEFFCA" BorderColor="#F0F0F0" BorderStyle="Solid" BorderWidth="1px"></asp:Label>
                                       </td>
                                   </tr>
                               </table>
                                  
                             </td>
                         </tr>
                                <tr>
                                    <td style="text-align: center; vertical-align: top;">
                                        &nbsp;</td>
                                    <td style="text-align: right; vertical-align: top;">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:Button ID="BtnCancelarGasto" runat="server" CssClass="boton w100" OnClick="BtnCancelarGasto_Click" Text="Close" ValidationGroup="NoValidar" />
                                    </td>
                                </tr>
                     </table>
                              </div>
                           </center>
                        </div>




<table style="border-style: solid; border-width: thin; width: 701px; background-color: #FFFFFF;" runat="server" id="TBFiltro">
                                     <tr>
                                         <td class="auto-style4" style="background-color: #DADADA">
                                             &nbsp;</td>
                                         <td class="auto-style6">
                                             <asp:CheckBox ID="ChFiltro" runat="server" AutoPostBack="True" Text="Búsqueda por Parametros" Visible="False" />
                                         </td>
                                         <td class="auto-style5" style="background-color: #DADADA">
                                             &nbsp;</td>
                                         <td>
                                             &nbsp;</td>
                                         <td rowspan="4">
                                             <asp:Button ID="btnBuscar" runat="server" CssClass="boton" Height="45px" Text="Buscar" Width="70px" />
                                             <br />
                                             <asp:Button ID="btnLimpiarB" runat="server" CssClass="boton" Height="27px" Text="Limpiar" Width="70px" />
                                         </td>
                                     </tr>
                                     <tr>
                                         <td class="auto-style4" style="background-color: #DADADA">
                                             <asp:Label ID="Label16" runat="server" Text="Cod. Cliente"></asp:Label>
                                         </td>
                                         <td class="auto-style6">
                                             <asp:TextBox ID="TxtCodClienteB" runat="server" Width="100px"></asp:TextBox>
                                         </td>
                                         <td class="auto-style5" style="background-color: #DADADA">
                                             <asp:Label ID="Label21" runat="server" Text="Nom. Cliente"></asp:Label>
                                         </td>
                                         <td>
                                             <asp:DropDownList ID="DrClientesB" runat="server" Width="220px">
                                             </asp:DropDownList>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td class="auto-style4" style="background-color: #DADADA">
                                             <asp:Label ID="Label17" runat="server" Text="Segmento"></asp:Label>
                                         </td>
                                         <td class="auto-style6">
                                             <asp:DropDownList ID="DrSegmentoPLB" runat="server" Width="200px">
                                             </asp:DropDownList>
                                         </td>
                                         <td class="auto-style5" style="background-color: #DADADA">
                                             <asp:Label ID="Label19" runat="server" Text="Producto"></asp:Label>
                                         </td>
                                         <td>
                                             <asp:DropDownList ID="DrProductoB" runat="server" Width="220px">
                                             </asp:DropDownList>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td class="auto-style4" style="background-color: #DADADA">
                                             <asp:Label ID="Label18" runat="server" Text="ProductLine"></asp:Label>
                                         </td>
                                         <td class="auto-style6">
                                             <asp:DropDownList ID="DrProductLineB" runat="server" Width="200px">
                                             </asp:DropDownList>
                                         </td>
                                         <td class="auto-style5" style="background-color: #DADADA">
                                             <asp:Label ID="Label20" runat="server" Text="UOM"></asp:Label>
                                         </td>
                                         <td>
                                             <asp:DropDownList ID="DrUOMB" runat="server" Width="100px">
                                             </asp:DropDownList>
                                         </td>
                                     </tr>
                                 </table>

                      </div>
                     <%--<uc1:AgregarForecast ID="AgregarForecast1" runat="server" />--%>
                     <br />
                                       <br />
                     <br />
                     
                 </ContentTemplate>
</asp:UpdatePanel>

    </ContentTemplate>


    

</asp:UpdatePanel>